package com.tszs.biz;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.MainAuthorityMapper;
import com.tszs.entity.MainAuthority;
import com.tszs.entity.MainAuthorityExample;
/**
 * @ 类名:MainAuthorityBiz
 * @ 类描述:主权限crud
 * @ 创建时间: 2019-03-21 11:49:11
 * @author 王俊
 *
 */
@Service
public class MainAuthorityBiz {
	@Autowired
	private MainAuthorityMapper mainAuthorityMapper;
	/**
	 * @方法名: selectByExample
	 * @方法描述: 主权限查询
	 * @创建时间: 2019-03-21 11:49:11
	 * @author: 王俊
	 * @return selectByExample 集合
	 */
	@Transactional
	public List<MainAuthority> selectByExample(MainAuthorityExample example) {
		return mainAuthorityMapper.selectByExample(example);
		
	}
	/**
	 * @方法名: insertSelective
	 * @方法描述: 主权限添加
	 * @创建时间: 2019-03-21 11:49:11
	 * @author: 王俊
	 * @return selectByExample 集合
	 */
	@Transactional
	public int insertSelective(MainAuthority record) {
		return mainAuthorityMapper.insertSelective(record);
		
	}
}
